package com.jk.controller;

import com.jk.po.TestPO;
import com.jk.service.TestService;
import com.jk.vo.ResultInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/***
 * @ClassName: TestController
 * @Description:TODO
 * @Auther: 景晨璇
 * @Date: 2021/6/29 15:09
 * @version : V1.0
 */
@RestController
@RequestMapping("test")
@Api("测试操作接口")
public class TestController {
    //日志记录对象
    private static Logger logger = LoggerFactory.getLogger(TestController.class);
    @Autowired
    private TestService testService;

    @GetMapping("querytest")
    @ApiOperation("查询测试信息")
    public List<TestPO> querytest(){
        return testService.queryTest();
    }

}
